package cn.calm.xhtml.api;

import java.io.Serializable;

import cn.calm.xhtml.api.exception.XhtmlException;
import cn.calm.xhtml.api.service.XhtmlContext;

public interface NodeProcess extends Serializable{
	
	public void processNode(XhtmlContext context) throws XhtmlException;

	public String getName();

	public void setName(String name);

	public String getContent();

	public void setContent(String content);

	public NodeProcess[] getChildren();

	public void setChildren(NodeProcess[] children);

	public void setAttr(String name, String value);

	public String getAttr(String name);
	
	public void setParent(NodeProcess parent);
	
	public NodeProcess getParent();
}
